package demo05;

import java.util.ArrayList;

public class Test03ArrayList {
    public static void main(String[] args) {
        ArrayList<String>list=new ArrayList<>();
        list.add("张三");
        list.add("李四");
        list.add("王五");
        System.out.print("{"+list.get(0));
        for (int i = 1; i < list.size(); i++) {
            System.out.print("@"+list.get(i));
        }
        System.out.print("}");
    }
}
